package dohmh.yelp.analysis;

import dohmh.yelp.classifiers.AbstractClassifier;
import dohmh.yelp.dataobjects.Classification;
import dohmh.yelp.dataobjects.Review;
import dohmh.yelp.exceptions.DOHMHException;

public class Evaluation {
	private AbstractClassifier [] _classifiers;
	
	public Evaluation(AbstractClassifier [] classifiers){
		_classifiers = classifiers;
	}

	public Classification [] classify(Review r) throws DOHMHException{
		Classification [] retArr = new Classification [_classifiers.length];
		for (int i = 0; i < _classifiers.length; i++){
			retArr[i] = _classifiers[i].classify(r);
		}
		return retArr;
	}
}
